package com.edu.test;

import com.edu.dao.UserDao;
import com.edu.dao.impl.UserDaoImpl;
import com.edu.mapper.UserMapper;
import com.edu.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author:mx
 * @Date:2025/11/17-17:18:08
 */
public class MyTest02 {

    public static void main(String[] args) {
//        System.getProperties().put("sun.misc.ProxyGenerator.saveGeneratedFiles", "true");
        ApplicationContext ctx = new ClassPathXmlApplicationContext("app2.xml");
        UserService userService = ctx.getBean(UserService.class);
        System.out.println(userService.getClass());
        userService.transferMoney(1,2,500);
    }
}
